home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / calendar-common-sets.xul < prev    next >
Extensible Markup Language  |  2008-02-19  |  13KB  |  225 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is Mozilla Calendar code.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    -   Philipp Kewisch <mozilla@kewis.ch>
  19.    - Portions created by the Initial Developer are Copyright (C) 2007
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    - Simon Paquet <bugzilla@babylonsounds.com>
  24.    -
  25.    - Alternatively, the contents of this file may be used under the terms of
  26.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  27.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.    - in which case the provisions of the GPL or the LGPL are applicable instead
  29.    - of those above. If you wish to allow use of your version of this file only
  30.    - under the terms of either the GPL or the LGPL, and not to allow others to
  31.    - use your version of this file under the terms of the MPL, indicate your
  32.    - decision by deleting the provisions above and replace them with the notice
  33.    - and other provisions required by the LGPL or the GPL. If you do not delete
  34.    - the provisions above, a recipient may use your version of this file under
  35.    - the terms of any one of the MPL, the GPL or the LGPL.
  36.    -
  37.    - ***** END LICENSE BLOCK ***** -->
  38.  
  39. <!DOCTYPE overlay [
  40.   <!ENTITY % calendarDTD SYSTEM "chrome://calendar/locale/calendar.dtd" >
  41.   <!ENTITY % eventDialogDTD SYSTEM "chrome://calendar/locale/calendar-event-dialog.dtd">
  42.   %calendarDTD;
  43.   %eventDialogDTD;
  44. ]>
  45.  
  46. <overlay id="calendar-common-sets-overlay"
  47.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  48.   <stringbundleset id="calendar_stringbundles">
  49.     <stringbundle id="bundle_branding" src="chrome://branding/locale/brand.properties"/>
  50.     <stringbundle id="bundle_calendar" src="chrome://calendar/locale/calendar.properties"/>
  51.   </stringbundleset>
  52.   <script type="application/x-javascript" src="chrome://calendar/content/calendar-common-sets.js"/>
  53.  
  54.   <commandset id="calendar_commands"
  55.               commandupdater="true"
  56.               events="calendar_commands"
  57.               oncommandupdate="calendarController.updateCommands()">
  58.     <command id="calendar_new_event_command" oncommand="goDoCommand('calendar_new_event_command')"/>
  59.     <command id="calendar_modify_event_command" oncommand="goDoCommand('calendar_modify_event_command')"/>
  60.     <command id="calendar_delete_event_command" oncommand="goDoCommand('calendar_delete_event_command')"/>
  61.  
  62.     <command id="calendar_new_todo_command" oncommand="goDoCommand('calendar_new_todo_command')"/>
  63.     <command id="calendar_modify_todo_command" oncommand="goDoCommand('calendar_modify_todo_command')"/>
  64.     <command id="calendar_delete_todo_command" oncommand="goDoCommand('calendar_delete_todo_command')"/>
  65.  
  66.     <command id="calendar_new_calendar_command" oncommand="goDoCommand('calendar_new_calendar_command')"/>
  67.     <command id="calendar_edit_calendar_command" oncommand="goDoCommand('calendar_edit_calendar_command')"/>
  68.     <command id="calendar_delete_calendar_command" oncommand="goDoCommand('calendar_delete_calendar_command')"/>
  69.  
  70.     <command id="calendar_import_command" oncommand="goDoCommand('calendar_import_command')"/>
  71.     <command id="calendar_export_command" oncommand="goDoCommand('calendar_export_command')"/>
  72.     <command id="calendar_export_selection_command" oncommand="goDoCommand('calendar_export_selection_command')"/>
  73.  
  74.     <command id="calendar_publish_selected_calendar_command" oncommand="goDoCommand('calendar_publish_selected_calendar_command')"/>
  75.     <command id="calendar_publish_calendar_command" oncommand="goDoCommand('calendar_publish_calendar_command')"/>
  76.     <command id="calendar_publish_selected_events_command" oncommand="goDoCommand('calendar_publish_selected_events_command')"/>
  77.  
  78.     <command id="calendar_reload_remote_calendars" oncommand="goDoCommand('calendar_reload_remote_calendars')"/>
  79.  
  80.     <command id="calendar_show_unifinder_command" oncommand="toggleUnifinder()"/>
  81.     <!-- The dash instead of the underscore is intended. the 'xxx-view' part should be the id of the view in the deck -->
  82.     <command id="calendar_day-view_command" oncommand="showCalendarView('day')"/>
  83.     <command id="calendar_week-view_command" oncommand="showCalendarView('week')"/>
  84.     <command id="calendar_multiweek-view_command" oncommand="showCalendarView('multiweek')"/>
  85.     <command id="calendar_month-view_command" oncommand="showCalendarView('month')"/>
  86.     <command id="calendar_modify_todo_command" oncommand="goDoCommand('calendar_modify_todo_command')"/>
  87.     <command id="calendar_task_category_command" oncommand="contextChangeTaskCategory(event);"/>
  88.     <command id="calendar_percentComplete-0_command" oncommand="goDoCommand('calendar_percentComplete-0_command')"/>
  89.     <command id="calendar_percentComplete-25_command" oncommand="goDoCommand('calendar_percentComplete-25_command')"/>
  90.     <command id="calendar_percentComplete-50_command" oncommand="goDoCommand('calendar_percentComplete-50_command')"/>
  91.     <command id="calendar_percentComplete-75_command" oncommand="goDoCommand('calendar_percentComplete-75_command')"/>
  92.     <command id="calendar_percentComplete-100_command" oncommand="goDoCommand('calendar_percentComplete-100_command')"/>
  93.     <command id="calendar_percentComplete-100_command2" oncommand="goDoCommand('calendar_percentComplete-100_command2')"/>
  94.     <command id="calendar_priority-0_command" oncommand="goDoCommand('calendar_priority-0_command')"/>
  95.     <command id="calendar_priority-9_command" oncommand="goDoCommand('calendar_priority-9_command')"/>
  96.     <command id="calendar_priority-5_command" oncommand="goDoCommand('calendar_priority-5_command')"/>
  97.     <command id="calendar_priority-1_command" oncommand="goDoCommand('calendar_priority-1_command')"/>
  98.     <command id="calendar_general-priority_command" oncommand="goDoCommand('calendar_general-priority_command')"/>
  99.     <command id="calendar_toggle_orientation_command" persist="checked" oncommand="toggleOrientation()" disabled="true"/>
  100.     <command id="calendar_toggle_workdays_only_command" persist="checked" oncommand="toggleWorkdaysOnly()"/>
  101.     <command id="calendar_toggle_tasks_in_view_command" persist="checked" oncommand="toggleTasksInView()"/>
  102.  
  103.     <command id="calendar_view_next_command" oncommand="moveView(1)"/>
  104.     <command id="calendar_view_prev_command" oncommand="moveView(-1)"/>
  105.  
  106.     <command id="calendar_go_to_today_command" oncommand="goToDate(now())"/>
  107.   </commandset>
  108.  
  109.   <popupset id="calendar-popupset">
  110.  
  111.     <!-- TASK ITEM CONTEXT MENU -->
  112.     <menupopup id="taskitem-context-menu" onpopupshowing="changeContextMenuForTask(event);">
  113.       <menuitem label="&calendar.context.newtodo.label;"
  114.                 accesskey="&calendar.context.newtodo.accesskey;"
  115.                 id="task-context-menu-new"
  116.                 command="calendar_new_todo_command"
  117.                 observes="calendar_new_todo_command"/>
  118.       <menuitem id="task-context-menu-modify"
  119.                 label="&calendar.context.modifytask.label;"
  120.                 accesskey="&calendar.context.modifytask.accesskey;"
  121.                 command="calendar_modify_todo_command"/>
  122.       <menuitem label="&calendar.context.deletetask.label;"
  123.                 accesskey="&calendar.context.deletetask.accesskey;"
  124.                 id="task-context-menu-delete"
  125.                 command="calendar_delete_todo_command"
  126.                 observes="calendar_delete_todo_command"/>
  127.       <menuseparator/>
  128.       <menuitem type="checkbox"
  129.                 label="&calendar.context.markcompleted.label;"
  130.                 accesskey="&calendar.context.markcompleted.accesskey;"
  131.                 id="calendar-context-markcompleted"
  132.                 oncommand="toggleCompleted(event)"/>
  133.       <menu label="&calendar.context.progress.label;"
  134.             accesskey="&calendar.context.progress.accesskey;"
  135.             id="task-context-menu-progress">
  136.         <menupopup id="calendar.context.progress-menu" onpopupshowing="changeTaskProgressMenu(event);">
  137.           <menuitem type="checkbox"
  138.                     id="percent-0-menuitem"
  139.                     label="&progress.level.0;"
  140.                     accesskey="&progress.level.0.accesskey;"
  141.                     observes="calendar_percentComplete-0_command"
  142.                     command="calendar_percentComplete-0_command"/>
  143.           <menuitem type="checkbox"
  144.                     id="percent-25-menuitem"
  145.                     label="&progress.level.25;"
  146.                     accesskey="&progress.level.25.accesskey;"
  147.                     observes="calendar_percentComplete-25_command"
  148.                     command="calendar_percentComplete-25_command"/>
  149.           <menuitem type="checkbox"
  150.                     id="percent-50-menuitem"
  151.                     label="&progress.level.50;"
  152.                     accesskey="&progress.level.50.accesskey;"
  153.                     observes="calendar_percentComplete-50_command"
  154.                     command="calendar_percentComplete-50_command"/>
  155.           <menuitem type="checkbox"
  156.                     id="percent-75-menuitem"
  157.                     label="&progress.level.75;"
  158.                     accesskey="&progress.level.75.accesskey;"
  159.                     observes="calendar_percentComplete-75_command"
  160.                     command="calendar_percentComplete-75_command"/>
  161.           <menuitem type="checkbox"
  162.                     id="percent-100-menuitem"
  163.                     label="&progress.level.100;"
  164.                     accesskey="&progress.level.100.accesskey;"
  165.                     observes="calendar_percentComplete-100_command"
  166.                     command="calendar_percentComplete-100_command"/>
  167.         </menupopup>
  168.       </menu>
  169.       <menu label="&calendar.context.priority.label;"
  170.             accesskey="&calendar.context.priority.accesskey;"
  171.             id="task-context-menu-priority">
  172.         <menupopup id="calendar.context.priority-menu" onpopupshowing="changeTaskPriorityMenu(event)">
  173.           <menuitem type="checkbox"
  174.                     id="priority-0-menuitem"
  175.                     label="&priority.level.none;"
  176.                     accesskey="&priority.level.none.accesskey;"
  177.                     command="calendar_priority-0_command"
  178.                     observes="calendar_priority-0_command"/>
  179.           <menuitem type="checkbox"
  180.                     id="priority-9-menuitem"
  181.                     label="&priority.level.low;"
  182.                     accesskey="&priority.level.low.accesskey;"
  183.                     command="calendar_priority-9_command"
  184.                     observes="calendar_priority-9_command"/>
  185.           <menuitem type="checkbox"
  186.                     id="priority-5-menuitem"
  187.                     label="&priority.level.medium;"
  188.                     accesskey="&priority.level.medium.accesskey;"
  189.                     command="calendar_priority-5_command"
  190.                     observes="calendar_priority-5_command"/>
  191.           <menuitem type="checkbox"
  192.                     id="priority-1-menuitem"
  193.                     label="&priority.level.high;"
  194.                     accesskey="&priority.level.high.accesskey;"
  195.                     command="calendar_priority-1_command"
  196.                     observes="calendar_priority-1_command"/>
  197.         </menupopup>
  198.       </menu>
  199.       <menu label="&calendar.calendar.label;"
  200.             accesskey="&calendar.calendar.accesskey;"
  201.             id="calendar-context-calendar-menu">
  202.             <menupopup onpopupshowing="addCalendarNames(event);">
  203.             </menupopup>
  204.       </menu>
  205.       <menuseparator/>
  206.       <menu label="&calendar.context.convert.label;"
  207.             accesskey="&calendar.context.convert.accesskey;"
  208.             id="task-context-menu-convert">
  209.         <menupopup>
  210.           <menuitem label="&calendar.context.converttoevent.label;"
  211.                     accesskey="&calendar.context.converttoevent.accesskey;"
  212.                     id="calendar-context-converttoevent"
  213.                     oncommand="tasksToEvents()"/>
  214.           <menuitem label="&calendar.context.converttomessage.label;"
  215.                     accesskey="&calendar.context.converttomessage.accesskey;"
  216.                     id="calendar-context-converttomessage"
  217.                     oncommand="tasksToMail()"/>
  218.         </menupopup>
  219.       </menu>
  220.     </menupopup>
  221.   </popupset>
  222.  
  223. </overlay>
  224.  
  225.